package com.ktjy.ch15.mapper;

import com.ktjy.ch15.entity.EdocEntry;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface EdocEntryMapper {

    public EdocEntry getByTitle(@Param("title") String title);

    //分页查询
    public List<EdocEntry> getPage(@Param("edocEntry") EdocEntry edocEntry,
                                      @Param("pageBegin") Integer pageBegin,
                                      @Param("pageSize") Integer pageSize);

    //总数
    public Integer count(@Param("edocEntry") EdocEntry edocEntry);

    //详情
    public EdocEntry getById(@Param("id") Long id);

    public int insert(EdocEntry edocEntry);

    public int update(EdocEntry edocEntry);

    public int delete(@Param("id") Long id);


}
